package com.daka.vo.response;

import com.daka.entity.Activity;
import lombok.Data;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/9/23 15:46
 */

@SuppressWarnings("unused")
@Data
@ToString
public class ActivityResponseVo {

    private Integer id;
    private String activityCode;
    private String name;
    private String startDay;
    private String startHour;
    private String startMinute;
    private String endDay;
    private String endHour;
    private String endMinute;
    private String linkMan;
    private String connectWay;
    private Integer attendCount;
    private Integer participants;
    private Integer organization;
    private Integer status;
    private Integer times;
    private Integer allTimes;
    private Integer delStatus;
    private String address;
    private String province;
    private String city;
    private String district;
    private Integer type;
    private Integer needs;
    private String img;
    private String createTime;
    private String tag;
    private Double lng;
    private Double lat;
    private Integer locked;
    private String applyStartDate;
    private String applyStopDate;
    private Integer selforgMember;
    private String description;
    //业务添加
    private Integer volunteerTime;

    public static ActivityResponseVo buildVO(Activity ac) {
        ActivityResponseVo activityResponseVo = new ActivityResponseVo();
        activityResponseVo.setId(ac.getId());
        activityResponseVo.setActivityCode(ac.getActivityCode());
        activityResponseVo.setName(ac.getName());
        activityResponseVo.setStartDay(ac.getStartDay());
        activityResponseVo.setStartHour(ac.getStartHour());
        activityResponseVo.setStartMinute(ac.getStartMinute());
        activityResponseVo.setEndDay(ac.getEndDay());
        activityResponseVo.setEndHour(ac.getEndHour());
        activityResponseVo.setEndMinute(ac.getEndMinute());
        activityResponseVo.setLinkMan(ac.getLinkMan());
        activityResponseVo.setConnectWay(ac.getConnectWay());
        activityResponseVo.setAttendCount(ac.getAttendCount());
        activityResponseVo.setParticipants(ac.getParticipants());
        activityResponseVo.setOrganization(ac.getOrganization());
        activityResponseVo.setStatus(ac.getStatus());
        activityResponseVo.setTimes(ac.getTimes());
        activityResponseVo.setAllTimes(ac.getAllTimes());
        activityResponseVo.setDelStatus(ac.getDelStatus());
        activityResponseVo.setAddress(ac.getAddress());
        activityResponseVo.setProvince(ac.getProvince());
        activityResponseVo.setCity(ac.getCity());
        activityResponseVo.setDistrict(ac.getDistrict());
        activityResponseVo.setType(ac.getType());
        activityResponseVo.setNeeds(ac.getNeeds());
        activityResponseVo.setImg(ac.getImg());
        activityResponseVo.setCreateTime(ac.getCreateTime());
        activityResponseVo.setTag(ac.getTag());
        activityResponseVo.setLng(ac.getLng());
        activityResponseVo.setLat(ac.getLat());
        activityResponseVo.setLocked(ac.getLocked());
        activityResponseVo.setApplyStartDate(ac.getApplyStartDate());
        activityResponseVo.setApplyStopDate(ac.getApplyStopDate());
        activityResponseVo.setDescription(ac.getDemo());
        activityResponseVo.setVolunteerTime(ac.getVolunteerTime());


        return activityResponseVo;
    }
}






